package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.Dto.DishDto;
import com.itheima.reggie.entity.Dish;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author huhanzhao
 * @create 2022-11-05-20:59
 */

public interface DishService extends IService<Dish> {
    public Page<DishDto> page(int page, int pageSize,String name);
    public boolean update(int status, List<Long> ids);
    public boolean delete(List<Long> ids);
    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish dish_flavor
    public void saveWithFlavor(DishDto dishDto);
    public DishDto get(Long id);

    public void updateWithFlavor(DishDto dishDto);
}
